<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HellojQuery</title>
<script type="text/javascript" src="../js/jquery-1.7.2.js"></script>
<script type="text/javascript">
	jQuery(function () {
		jQuery("#btnId").click(function () {
			alert("hello");
		});
	});
	window.onload = function () {
		var btn = document.getElementById("btnId");
		btn.onclick = function () {
			alert("hello");
		};
	};
</script>
</head>
<body>
	<button id="btnId">SayHello</button>
</body>
</html>